﻿#region

using System.Collections.Generic;

#endregion

namespace AeroWizard
{
  public partial class WizardControl
  {
    #region Nested type: WizardPageCollection

    /// <summary>
    ///   A collection of <see cref = "WizardPage" /> controls.
    /// </summary>
    public class WizardPageCollection : EventedList<WizardPage>
    {
      /// <summary>
      ///   Initializes a new instance of the <see cref = "WizardPageCollection" /> class.
      /// </summary>
      /// <param name = "owner">The <see cref = "WizardControl" /> that this collection belongs to.</param>
      public WizardPageCollection(WizardControl owner)
      {
        Owner = owner;
      }

      /// <summary>
      ///   Gets the <see cref = "WizardControl" /> to which this collection belongs.
      /// </summary>
      /// <value>The <see cref = "WizardControl" />.</value>
      public WizardControl Owner { get; private set; }
    }

    #endregion
  }
}